import request from '@/utils/http'

export function getCategoryAPI() {
    return request({
        url: '/category',
        params: {
            id
        }
    })
}
// 获取二级分类列表数据
// 分类id
export const getCategoryFilterAPI = (id) => {
    return request({
        url: '/category/sub/filter',
        params: {
            id
        }
    })
}

// 获取导航数据
export const getSubCategoryAPI = (data) => {
    return request({
        url: '/category/goods/temporary',
        method: 'POST',
        data
    })
}